{% extends "base.html" %}

{% block title %}
{{ object.name }} Registration - Schools
{% endblock %}

{% block content %}
<div class="header">
<h1>Schools for {{ object.name }}</h1>

<p><a class="button" href="new-school/">Register School</a></p>

{% if object.school_set.all %}
    {% for school in object.school_set.all %}
        <p><a href="{{ school.url_name }}">{{ school.name }}</a></p>
    {% endfor %}
{% else %}
    <p>No schools are registered for {{ object.name }}.</p>
{% endif %}

</div>
{% endblock %}
